package com.lehecai.ucenter.service.impl.permission;

import java.util.List;

import com.lehecai.ucenter.dao.QueryParam;
import com.lehecai.ucenter.dao.permission.PermissionDao;
import com.lehecai.ucenter.entity.permission.Permission;
import com.lehecai.ucenter.service.permission.PermissionService;

public class PermissionServiceImpl implements PermissionService {
	private PermissionDao permissionDao;
	
	public PermissionDao getPermissionDao() {
		return permissionDao;
	}

	public void setPermissionDao(PermissionDao permissionDao) {
		this.permissionDao = permissionDao;
	}
	
	@Override
	public List<Permission> getAll() {
		return permissionDao.getAll();
	}
	
	@Override
	public List<Permission> findList(QueryParam queryParam) {
		return permissionDao.findList(queryParam);
	}

	@Override
	public Permission get(Long id) {
		return permissionDao.get(id);
	}

	@Override
	public Permission update(Permission permission) {
		return permissionDao.merge(permission);
	}

	@Override
	public void delete(Permission permission) {
		permissionDao.delete(permission);
	}
}
